<?php
ob_start('comprimir_pagina');
session_start();
?>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title><?php echo C_TITLE ?></title>
    <base href="<?=base_url()?>" />
    <meta name="description"  content="<?php echo C_META_DESCRIPTION    ?>">
    <meta name="keywords"     content="<?php echo C_META_KEYWORDS       ?>">
    <meta name="author"       content="<?php echo C_META_AUTHOR         ?>">
    <meta name="generator"    content="Emacs http://www.gnu.org/software/emacs/                    ">
    <link href="application/external/jquery-ui/css/themes/default/jquery-ui.css"       rel="stylesheet" type="text/css" />
    <link href="application/external/jqgrid/css/ui.jqgrid.css"                         rel="stylesheet" type="text/css" />
    <link href="application/external/wijmo/css/jquery.wijmo-open.css"                  rel="stylesheet" type="text/css" />
    <link href="application/external/jquery-ui-selectmenu/jquery.ui.selectmenu.css"    rel="stylesheet" type="text/css" />
    <!-- <link href="application/views/scripts/css/home.css"                                rel="stylesheet" type="text/css" /> -->
    <link href="application/views/scripts/css/common.css"                              rel="stylesheet" type="text/css" />
    <link href="application/external/contextmenu/jquery.contextMenu.css"               rel="stylesheet" type="text/css" />
    <style type="text/css" media="screen">
      <?php include('scripts/css/home.css') ?>
    </style>
    <script src='application/external/jquery.min.js'                                   type='text/javascript'></script>
    <script src='application/external/jquery-ui/js/jquery-ui.min.js'                   type='text/javascript'></script>
    <script src='application/external/jquery.ui.datepicker-es.js'                      type='text/javascript'></script>
    <script src='application/external/jqgrid/js/i18n/grid.locale-es.js'                type='text/javascript'></script>
    <script src='application/external/jquery.jqGrid.getDialogsFormsEdit.js'            type='text/javascript'></script>
    <script src='application/external/jqgrid/js/jquery.jqGrid.min.js'                  type='text/javascript'></script>
    <script src='application/external/wijmo/js/jquery.wijmo-open.all.min.js'           type='text/javascript'></script>
    <script src='application/external/jquery-ui-selectmenu/jquery.ui.selectmenu.js'    type='text/javascript'></script>
    <script src='application/views/scripts/js/common.js'                               type='text/javascript'></script>
  </head>
  <body>
    <div id="wrapper">
      <div id="logo">
        <a id="hp_logo" href="">
          <img src="application/assets/imagenes/escudo-header.png" alt="<?php echo $this->lang->line('img_alt_shield_header').C_NOMBRE_AYUNTAMIENTO ?>" />
        </a>
      </div>
      <div id="flags" align="right">
        <a id="flag_es" href="#">
          <img src="application/assets/images/flags/spanish.png" alt="<?php echo $this->lang->line('img_alt_flag_es') ?>" />
        </a>
        <a id="flag_cat" href="#">
          <img src="application/assets/images/flags/catalan.png" alt="<?php echo $this->lang->line('img_alt_flag_cat') ?>" />
        </a>
        <a id="flag_en" href="#">
          <img src="application/assets/images/flags/english.png" alt="<?php echo $this->lang->line('img_alt_flag_en') ?>" />
        </a>
        <a id="flag_fr" href="#">
          <img src="application/assets/images/flags/french.png" alt="<?php echo $this->lang->line('img_alt_flag_fr') ?>" />
        </a>
        <a id="flag_de" href="#">
          <img src="application/assets/images/flags/german.png" alt="<?php echo $this->lang->line('img_alt_flag_de') ?>" />
        </a>
        <a id="flag_it" href="#">
          <img src="application/assets/images/flags/italian.png" alt="<?php echo $this->lang->line('img_alt_flag_it') ?>" />
        </a>
        <a id="flag_pt_br" href="#">
          <img src="application/assets/images/flags/brazilian_portuguese.png" alt="<?php echo $this->lang->line('img_alt_flag_pt_br') ?>" />
        </a>
        <a id="flag_pl" href="#">
          <img src="application/assets/images/flags/polish.png" alt="<?php echo $this->lang->line('img_alt_flag_pl') ?>" />
        </a>
        <a id="flag_hu" href="#">
          <img src="application/assets/images/flags/hungarian.png" alt="<?php echo $this->lang->line('img_alt_flag_hu') ?>" />
        </a>
        <a id="flag_pt" href="#">
          <img src="application/assets/images/flags/portuguese.png" alt="<?php echo $this->lang->line('img_alt_flag_pt') ?>" />
        </a>
        <a id="flag_ru" href="#">
          <img src="application/assets/images/flags/russian.png" alt="<?php echo $this->lang->line('img_alt_flag_ru') ?>" />
        </a>
        <a id="flag_sl" href="#">
          <img src="application/assets/images/flags/slovenian.png" alt="<?php echo $this->lang->line('img_alt_flag_sl') ?>" />
        </a>
        <a id="flag_tr" href="#">
          <img src="application/assets/images/flags/turkish.png" alt="<?php echo $this->lang->line('img_alt_flag_tr') ?>" />
        </a>
      </div>
      <div id="header" class="ui-widget-content ui-corner-all">
        <center>
          <h1 id="nombreAgencia" class="ui-state-highlight ui-corner-top"><?php echo C_NOMBRE_AGENCIA ?></h1>
        </center>
      </div>
      <div id="middle">
        <?php echo $menu ?>
        <!-- Div para el funcionamiento de las tabs -->
        <div id="tabs">
          <ul>
          </ul>
        </div>
        <!-- /tabs -->
      </div>
      <div id="footer" class="ui-widget-content ui-corner-all">
        <i>
          <center class="ui-state-highlight ui-corner-top">
            <?php echo "Centro de Empleo" .C_NOMBRE_AYUNTAMIENTO. "<br />" .C_DIRECCION_AYUNTAMIENTO. " | Tlf: " .C_TELEFONO_AYUNTAMIENTO. " | " .C_EMAIL_AYUNTAMIENTO ?>
          </center>
        </i>
      </div>
    </div>
    <script type="text/javascript">
      <?php include('scripts/js/home.js') ?>
    </script>
  </body>
</html>
<?php
ob_end_flush();
// Función para eliminar todos los espacios en blanco
function comprimir_pagina($buffer) {
    $busca = array('/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s');
    $reemplaza = array('>','<','\\1');
    //return preg_replace($busca, $reemplaza, $buffer);
    return $buffer;
}
?>
